﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UsersMaster.master" AutoEventWireup="true"
    CodeBehind="UpdateItem.aspx.cs" Inherits="SMS.Items.UpdateItem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="UserMainContent" runat="server">
    <div id="search" dir="rtl" class="boxed">
        <h2>
            Update Item</h2>
        <div class="content">
            <asp:DataList runat="server" ID="dlStockItems" HeaderStyle-Font-Bold="true" EditItemIndex="-1"
                DataKeyField="ID" OnCancelCommand="dlStockItems_CancelCommand" OnDeleteCommand="dlStockItems_DeleteCommand"
                OnEditCommand="dlStockItems_EditCommand" OnItemCommand="dlStockItems_ItemCommand"
                OnUpdateCommand="dlStockItems_UpdateCommand">
                <HeaderTemplate>
                    <table border="1">
                        <tr>
                            <td>
                                <asp:Label runat="server" Text="Part Number" />
                            </td>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="البـار كود" />
                            </td>
                            <td>
                                <asp:Label runat="server" Text="الاسـم" />
                            </td>
                            <td>
                                <asp:Label runat="server" Text="المـاركـة" />
                            </td>
                            <td>
                                <asp:Label runat="server" Text="سعـر الوحدة" />
                            </td>
                            <td>
                                <asp:Label runat="server" Text="بلـد المنشأ" />
                            </td>
                            <td>
                                <asp:Label runat="server" Text="الكميـة" />
                            </td>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="أقـل كميـة" />
                            </td>
                            <td>
                                <asp:Label runat="server" Text="المخـزن" />
                            </td>
                            <td>
                                <asp:Label runat="server" Text="تعديــل" />
                            </td>
                            <td>
                                <asp:Label runat="server" Text="حـذف" />
                            </td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Label runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.PartNumber") %>' />
                        </td>
                        <td>
                            <asp:Label runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.BarCode") %>' />
                        </td>
                        <td>
                            <asp:Label runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.Name") %>' />
                        </td>
                        <td>
                            <asp:Label runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.Mark") %>' />
                        </td>
                        <td>
                            <asp:Label runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.SellingPrice") %>' />
                        </td>
                        <td>
                            <asp:Label runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.ManfCountry") %>' />
                        </td>
                        <td>
                            <asp:Label runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Count") %>' />
                        </td>
                        <td>
                            <asp:Label runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"MinCount") %>' />
                        </td>
                        <td>
                            <asp:Label runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Stock.Name") %>' />
                        </td>
                        <td>
                            <asp:LinkButton runat="server" Text="تعديـل" CommandName="edit" />
                        </td>
                        <td>
                            <asp:LinkButton runat="server" Text="حـذف" CommandName="delete" />
                        </td>
                    </tr>
                </ItemTemplate>
                <EditItemTemplate>
                    <tr>
                        <td >
                            <asp:TextBox runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.PartNumber") %>'
                                ID="txtPartNumber" Width="80%" />
                        </td>
                        <td >
                            <asp:TextBox runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.BarCode") %>'
                                ID="txtBarCode" Width="80%" />
                        </td>
                        <td >
                            <asp:TextBox runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.Name") %>'
                                ID="txtName" Width="80%" />
                        </td>
                        <td >
                            <asp:TextBox runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.Mark") %>'
                                ID="txtMark" Width="80%"/>
                        </td>
                        <td >
                            <asp:TextBox runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.SellingPrice") %>'
                                ID="txtSellingPrice" Width="80%"/>
                        </td>
                        <td >
                            <asp:TextBox runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Item.ManfCountry") %>'
                                ID="txtManfCountry" Width="80%" />
                        </td>
                        <td >
                            <asp:TextBox runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Count") %>'
                                ID="txtCount" Width="80%" />
                        </td>
                        <td >
                            <asp:TextBox runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"MinCount") %>'
                                ID="txtMinCount" Width="80%"/>
                        </td>
                        <td >
                            <asp:Label runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Stock.Name") %>' />
                        </td>
                        <td >
                            <asp:LinkButton runat="server" Text="تثبيت" CommandName="update" />
                        </td>
                        <td >
                            <asp:LinkButton runat="server" Text="الغـاء" CommandName="cancel" />
                        </td>
                    </tr>
                </EditItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:DataList>
        </div>
    </div>
</asp:Content>
